package club.pchome.utils;

import cn.hutool.core.collection.CollUtil;
import cn.hutool.extra.mail.MailAccount;
import cn.hutool.extra.mail.MailUtil;
import cn.hutool.log.Log;
import cn.hutool.log.LogFactory;
import org.junit.Test;

/**
 * 邮箱处理类
 * @author Watler
 */
public class EmailUtil {

    @Test
    public void sendMail(){
//        MailAccount account = new MailAccount();
//        account.setHost("smtp.qq.com");
//        account.setPort(25);
//        account.setAuth(true);
////        account.setSslEnable(true);
//        account.setFrom("545163269@qq.com");
//        account.setUser("watler");
//        account.setPass("kywmrcjbklyhbbjc");

        MailUtil.sendText("p55945@126.com","邮件标题","内容");
    }

}
